$(document).ready(function() 
{
	
	//getListFolder();
	//attachEventListener();
	
});


function attachEventListener() 
{
	
	$('.folder').click(function (event) {
		
		FolderPath = event.target.id;
		//alert('folder '+FolderPath+' as clicked');
		getFolderContent(FolderPath);
		
	});
	
	$('.user').click(function (event) {
		
		userId = event.target.id;
		//alert('user: '+userId+' as clicked');
		getUserData(userId);
		
	});
	
}




function logOut()
{
	$.post("/resources/WebServices/Login.php", "fn=logOut", function(data) 
	{

        var ret = eval(data)[0];
        var redirect = ret.redirect;
        
        /* OK */
        document.location.href = redirect;
        return;


	});	
}
